package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Objects;


/**
 * @desc DataSetContrastFilerNumDto
 * @使用场景
 */
@Data
public class DataSetContrastFilerNumDto extends BaseDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 目标值
     */
    @NotNull(message = "目标值不能为空")
    @ApiModelProperty("目标值")
    private Double targetValue;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DataSetContrastFilerNumDto that = (DataSetContrastFilerNumDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && targetValue == that.targetValue && isParentCycle == that.isParentCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, targetValue, isParentCycle, isSubCycle, isMetaphase);
    }


}
   